-- GENERATED SPELL FOR [Koi-Koi Spirit] --


function spell0_22226(pUnit, Event) --@Ghost Strike,n/a--
pUnit:FullCastSpellOnTarget(36093,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22226', 592, 1)
end

function Sorts_22226(pUnit, Event)
local choix_sorts_22226 = math.random(0, 0)
if choix_sorts_22226 == 0 then
pUnit:RegisterEvent('spell0_22226', 1, 1)
end
end

function mob22226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22226', math.random(1500, 3000), 1)
end

function mob22226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22226, 1, 'mob22226_Action')
RegisterUnitEvent(22226, 2, 'mob22226_Leave')
RegisterUnitEvent(22226, 3, 'mob22226_Kill')
RegisterUnitEvent(22226, 4, 'mob22226_Die')
